﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Fashion.BackEnd.Common
{
    public partial class UsrHeader : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                litUserName.Text = A.M.GetAccountFromCookies().UserName;
            }
        }

        protected void lnkLogout_Click(object sender, EventArgs e)
        {
            A.M.DeleteAccountLoginInCookies();
            A.M.RefreshCurrentPage();
        }
    }
}